#include "ObserverCalculate.h"
#include "Arm.h"
#include "Subject.h"
#include "AlarmZone.h"
#include "VisitorCheckArm.h"
#include "WorkZone.h"

void ObserverCalculate::update(Subject * value)
{
	Arm *a = (Arm*)value;
	VisitorCheckArm VCA;

	a->calculate();
	Zone()->AcceptVisitor(&VCA);
}
